(function(window, undefined){
    function Init(el)
    {
        let els = document.querySelectorAll(el)
        for (let i = 0; i < els.length; i++)
        {
            this[i] = els[i] 
        }
        this.length = els.length
    }
    let jQuery = function(el) {
        return new Init(el)
    }
    jQuery.extend = function(obj) {
        for (key in obj)
        {
            Init.prototype[key]= obj[key]
        }
    }
    Init.prototype = {
        css(cssName, cssVal) {
            for (let i=0; i<this.length; i++)
            {
                this[i].style[cssName] = cssVal
            }
            return this 
        },
        attr(options){},
    }
    window.jQuery = window.$ = jQuery
})(window)

